/*
 * Powered By [rapid-framework]
 * Web Site: http://www.rapid-framework.org.cn
 * Google Code: http://code.google.com/p/rapid-framework/
 * Since 2008 - 2013
 */

package com.gxuwz.byssxsys.model;

import javax.persistence.*;

import org.hibernate.annotations.GenericGenerator;

import javax.validation.constraints.*;
import org.hibernate.validator.constraints.*;
import org.apache.commons.lang.builder.EqualsBuilder;
import org.apache.commons.lang.builder.HashCodeBuilder;
import org.apache.commons.lang.builder.ToStringBuilder;
import org.apache.commons.lang.builder.ToStringStyle;

import java.util.*;

import javacommon.base.*;
import javacommon.util.*;

import cn.org.rapid_framework.util.*;
import cn.org.rapid_framework.web.util.*;
import cn.org.rapid_framework.page.*;
import cn.org.rapid_framework.page.impl.*;

import com.gxuwz.byssxsys.model.*;
import com.gxuwz.byssxsys.dao.*;
import com.gxuwz.byssxsys.service.*;
import com.gxuwz.byssxsys.vo.query.*;

/**
 * @author badqiu email:badqiu(a)gmail.com
 * @version 1.0
 * @since 1.0
 */


@Entity
@Table(name = "teacher_base_info")
public class TeacherBaseInfo extends BaseEntity implements java.io.Serializable{
	private static final long serialVersionUID = 5454155825314635342L;
	
	//alias
	public static final String TABLE_ALIAS = "TeacherBaseInfo";
	public static final String ALIAS_ID = "主键";
	public static final String ALIAS_TEACH_NO1 = "教师编号";
	public static final String ALIAS_TEACH_NAME2 = "姓名";
	public static final String ALIAS_TEACH_SEX3 = "性别";
	public static final String ALIAS_TEACH_XI4 = "系别";
	public static final String ALIAS_TEACH_IDCARD5 = "身份证号码";
	public static final String ALIAS_TEACH_MOBILE_PHONE6 = "联系电话";
	public static final String ALIAS_TEACH_EMAIL7 = "电子邮件";
	public static final String ALIAS_TEACH_SPECIALITY8 = "擅长方向";
	public static final String ALIAS_TEACH_AWARDS9 = "获奖情况";
	public static final String ALIAS_TEACH_PASSWORD10 = "密码";
	public static final String ALIAS_TEACH_REMARK11 = "审核备注";
	public static final String ALIAS_TEACH_NUMBER12 = "指导学生数";
	public static final String ALIAS_TEACH_PUBLISH_PAPERS14 = "发表论文篇数";
	public static final String ALIAS_TEACH_PAST_PERFORMANCE15 = "往届学生毕设平均成绩";
	
	//date formats
	

	//可以直接使用: @Length(max=50,message="用户名长度不能大于50")显示错误消息
	//columns START
    /**
     * 主键       db_column: id 
     */ 	
	
	private java.lang.Integer id;
    /**
     * 教师编号       db_column: teach_no1 
     */ 	
	@Length(max=50)
	private java.lang.String teachNo1;
    /**
     * 姓名       db_column: teach_name2 
     */ 	
	@Length(max=60)
	private java.lang.String teachName2;
    /**
     * 性别       db_column: teach_sex3 
     */ 	
	
	private java.lang.Integer teachSex3;
    /**
     * 系别       db_column: teach_xi4 
     */ 	
	@Length(max=100)
	private java.lang.String teachXi4;
    /**
     * 身份证号码       db_column: teach_idcard5 
     */ 	
	@NotBlank @Length(max=50)
	private java.lang.String teachIdcard5;
    /**
     * 联系电话       db_column: teach_mobile_phone6 
     */ 	
	@NotBlank @Length(max=50)
	private java.lang.String teachMobilePhone6;
    /**
     * 电子邮件       db_column: teach_email7 
     */ 	
	@Email @Length(max=50)
	private java.lang.String teachEmail7;
    /**
     * 擅长方向       db_column: teach_speciality8 
     */ 	
	@Length(max=100)
	private java.lang.String teachSpeciality8;
    /**
     * 获奖情况       db_column: teach_awards9 
     */ 	
	@Length(max=500)
	private java.lang.String teachAwards9;
    /**
     * 密码       db_column: teach_password10 
     */ 	
	@Length(max=50)
	private java.lang.String teachPassword10;
    /**
     * 审核备注       db_column: teach_remark11 
     */ 	
	@Length(max=500)
	private java.lang.String teachRemark11;
    /**
     * 指导学生数       db_column: teach_number12 
     */ 	
	
	private java.lang.Integer teachNumber12;
    /**
     * 发表论文篇数       db_column: teach_publish_papers14 
     */ 	
	
	private java.lang.Integer teachPublishPapers14;
    /**
     * 往届学生毕设平均成绩       db_column: teach_past_performance15 
     */ 	
	
	private java.lang.Float teachPastPerformance15;
	//columns END


	public TeacherBaseInfo(){
	}

	public TeacherBaseInfo(
		java.lang.Integer id
	){
		this.id = id;
	}

	

	public void setId(java.lang.Integer value) {
		this.id = value;
	}
	
	@Id @GeneratedValue(generator="custom-id")
	@GenericGenerator(name="custom-id", strategy = "increment")
	@Column(name = "id", unique = true, nullable = false, insertable = true, updatable = true, length = 10)
	public java.lang.Integer getId() {
		return this.id;
	}
	
	@Column(name = "teach_no1", unique = true, nullable = true, insertable = true, updatable = true, length = 50)
	public java.lang.String getTeachNo1() {
		return this.teachNo1;
	}
	
	public void setTeachNo1(java.lang.String value) {
		this.teachNo1 = value;
	}
	
	@Column(name = "teach_name2", unique = false, nullable = true, insertable = true, updatable = true, length = 60)
	public java.lang.String getTeachName2() {
		return this.teachName2;
	}
	
	public void setTeachName2(java.lang.String value) {
		this.teachName2 = value;
	}
	
	@Column(name = "teach_sex3", unique = false, nullable = true, insertable = true, updatable = true, length = 10)
	public java.lang.Integer getTeachSex3() {
		return this.teachSex3;
	}
	
	public void setTeachSex3(java.lang.Integer value) {
		this.teachSex3 = value;
	}
	
	@Column(name = "teach_xi4", unique = false, nullable = true, insertable = true, updatable = true, length = 100)
	public java.lang.String getTeachXi4() {
		return this.teachXi4;
	}
	
	public void setTeachXi4(java.lang.String value) {
		this.teachXi4 = value;
	}
	
	@Column(name = "teach_idcard5", unique = false, nullable = false, insertable = true, updatable = true, length = 50)
	public java.lang.String getTeachIdcard5() {
		return this.teachIdcard5;
	}
	
	public void setTeachIdcard5(java.lang.String value) {
		this.teachIdcard5 = value;
	}
	
	@Column(name = "teach_mobile_phone6", unique = false, nullable = false, insertable = true, updatable = true, length = 50)
	public java.lang.String getTeachMobilePhone6() {
		return this.teachMobilePhone6;
	}
	
	public void setTeachMobilePhone6(java.lang.String value) {
		this.teachMobilePhone6 = value;
	}
	
	@Column(name = "teach_email7", unique = false, nullable = true, insertable = true, updatable = true, length = 50)
	public java.lang.String getTeachEmail7() {
		return this.teachEmail7;
	}
	
	public void setTeachEmail7(java.lang.String value) {
		this.teachEmail7 = value;
	}
	
	@Column(name = "teach_speciality8", unique = false, nullable = true, insertable = true, updatable = true, length = 100)
	public java.lang.String getTeachSpeciality8() {
		return this.teachSpeciality8;
	}
	
	public void setTeachSpeciality8(java.lang.String value) {
		this.teachSpeciality8 = value;
	}
	
	@Column(name = "teach_awards9", unique = false, nullable = true, insertable = true, updatable = true, length = 500)
	public java.lang.String getTeachAwards9() {
		return this.teachAwards9;
	}
	
	public void setTeachAwards9(java.lang.String value) {
		this.teachAwards9 = value;
	}
	
	@Column(name = "teach_password10", unique = false, nullable = true, insertable = true, updatable = true, length = 50)
	public java.lang.String getTeachPassword10() {
		return this.teachPassword10;
	}
	
	public void setTeachPassword10(java.lang.String value) {
		this.teachPassword10 = value;
	}
	
	@Column(name = "teach_remark11", unique = false, nullable = true, insertable = true, updatable = true, length = 500)
	public java.lang.String getTeachRemark11() {
		return this.teachRemark11;
	}
	
	public void setTeachRemark11(java.lang.String value) {
		this.teachRemark11 = value;
	}
	
	@Column(name = "teach_number12", unique = false, nullable = true, insertable = true, updatable = true, length = 10)
	public java.lang.Integer getTeachNumber12() {
		return this.teachNumber12;
	}
	
	public void setTeachNumber12(java.lang.Integer value) {
		this.teachNumber12 = value;
	}
	
	@Column(name = "teach_publish_papers14", unique = false, nullable = true, insertable = true, updatable = true, length = 10)
	public java.lang.Integer getTeachPublishPapers14() {
		return this.teachPublishPapers14;
	}
	
	public void setTeachPublishPapers14(java.lang.Integer value) {
		this.teachPublishPapers14 = value;
	}
	
	@Column(name = "teach_past_performance15", unique = false, nullable = true, insertable = true, updatable = true, length = 12)
	public java.lang.Float getTeachPastPerformance15() {
		return this.teachPastPerformance15;
	}
	
	public void setTeachPastPerformance15(java.lang.Float value) {
		this.teachPastPerformance15 = value;
	}
	

	public String toString() {
		return new ToStringBuilder(this,ToStringStyle.MULTI_LINE_STYLE)
			.append("Id",getId())
			.append("TeachNo1",getTeachNo1())
			.append("TeachName2",getTeachName2())
			.append("TeachSex3",getTeachSex3())
			.append("TeachXi4",getTeachXi4())
			.append("TeachIdcard5",getTeachIdcard5())
			.append("TeachMobilePhone6",getTeachMobilePhone6())
			.append("TeachEmail7",getTeachEmail7())
			.append("TeachSpeciality8",getTeachSpeciality8())
			.append("TeachAwards9",getTeachAwards9())
			.append("TeachPassword10",getTeachPassword10())
			.append("TeachRemark11",getTeachRemark11())
			.append("TeachNumber12",getTeachNumber12())
			.append("TeachPublishPapers14",getTeachPublishPapers14())
			.append("TeachPastPerformance15",getTeachPastPerformance15())
			.toString();
	}
	
	public int hashCode() {
		return new HashCodeBuilder()
			.append(getId())
			.toHashCode();
	}
	
	public boolean equals(Object obj) {
		if(obj instanceof TeacherBaseInfo == false) return false;
		if(this == obj) return true;
		TeacherBaseInfo other = (TeacherBaseInfo)obj;
		return new EqualsBuilder()
			.append(getId(),other.getId())
			.isEquals();
	}
}

